package com.stylefeng.guns.biz.share.wrapper;

import java.util.Map;

import com.stylefeng.guns.core.base.warpper.BaseControllerWarpper;
import com.stylefeng.guns.core.common.constant.state.IsOpen;
import com.stylefeng.guns.core.common.constant.state.ShareType;

/**
 * 部门列表的包装
 *
 * @author sundm
 * @date 2017年4月25日 18:10:31
 */
public class ShareWarpper extends BaseControllerWarpper {

    public ShareWarpper(Object list) {
        super(list);
    }

    @Override
    public void warpTheMap(Map<String, Object> map) {

        Integer sharePageType = (Integer) map.get("sharePageType");
        String typeName = ShareType.valueOf(sharePageType);
        map.put("typeName", typeName);

        Integer isOpen = (Integer) map.get("isOpen");
        String isOpenName = IsOpen.valueOf(isOpen);
        map.put("isOpenName", isOpenName);
        
        
        
    }

}
